/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.monitor.CheckCycleStart.service;

import java.util.List;

import com.jeeplus.modules.monitor.CheckCycleStart.entity.CheckMainentity;
import com.jeeplus.modules.monitor.CheckCycleStart.entity.CheckPlanTableJob;
import com.jeeplus.modules.monitor.CheckCycleStart.entity.CheckPlanTableTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 定时任务Service
 *
 * @author lgf
 * @version 2017-02-04
 */
@Service
@Transactional(readOnly = true)
public class CheckCycleStartService {


    @Autowired
    private com.jeeplus.modules.monitor.CheckCycleStart.mapper.CheckCycleStartQuartzMapper checkCycleStartMapper;


    public List<CheckMainentity> findList(){
        List<CheckMainentity> list = checkCycleStartMapper.findList();
        return list;
    }
    @Transactional(readOnly = false)
    public void insertCheckPlanTable(CheckPlanTableTable checkPlanTableTable){
        checkCycleStartMapper.insertCheckPlanTable(checkPlanTableTable);
    }

    public List<CheckPlanTableJob> findcheckPlanTableJoinsList(){
        return checkCycleStartMapper.findcheckPlanTableJoinsList();
    }

    @Transactional(readOnly = false)
    public void updataCheckPlanTable(CheckPlanTableJob checkPlanTableJob){
        checkCycleStartMapper.updataCheckPlanTable(checkPlanTableJob);
    }

}
